import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import i18n from './locales'

import './libs/lazy_use'
import './assets/style/global.less' // global style
import './libs/filter' // global filter
import bootstrap from './libs/bootstrap'

console.log('envConf ', envConf)

//开发环境并且允许 mock 数据是开启 MockServer
if (process.env.NODE_ENV === 'development') {
  require('./mock/MockServer')
}

Vue.config.productionTip = false

new Vue({
  router,
  store,
  i18n,
  created: bootstrap,
  render: h => h(App)
}).$mount('#app')